export class MenuType {
  iconType: string
  iconUrl: string
  id: string
  linkUrl: string
  name: string
  openModel: string
  position: string
  positionX: string
  positionY: string
  type: string

  constructor() {
    this.iconType = ''
    this.iconUrl = ''
    this.id = ''
    this.linkUrl = ''
    this.name = ''
    this.openModel = ''
    this.position = ''
    this.positionX = ''
    this.positionY = ''
    this.type = ''
  }
}

import { insert, list } from '@/api/desktop/DictApi'

export class Dict {
  id: string
  name: string
  code: string
  ancestor: string

  constructor() {
    this.name = ''
    this.code = ''
    this.ancestor = ''
  }

  list() {
    return list()
  }
}

export class TreeNode {
  id: string
  name: string
  shortName: string
  parentId: string
  nodeType: string
  sort: number
  type: string
  extInfo: {}
  children: TreeNode[]

  constructor() {
    this.id = ''
    this.name = ''
    this.shortName = ''
    this.parentId = ''
    this.nodeType = ''
    this.sort = 0
    this.type = ''
    this.extInfo = {}
    this.children = []
  }
}
export class WallPaper {
  startdate: string
  fullstartdate: string
  enddate: string
  url: string
  urlbase: string
  copyright: string
  copyrightlink: string
  title: string
  quiz: string
  wp: boolean
  hsh: string
  drk: number
  top: number
  bot: number
  hs: []

  constructor() {
    this.startdate = ''
    this.fullstartdate = ''
    this.enddate = ''
  }
}

export class UserConfig {
  disabled: number
  sort: number
  createTime: string
  updateTime: string
  operator: string
  userId: string
  backgroundImg: string
  bottomNavColor: string
  fontColor: string

  constructor() {
    this.disabled = 0
    this.sort = 0
    this.createTime = ''
    this.updateTime = ''
    this.operator = ''
    this.userId = ''
    this.backgroundImg = ''
  }
}

export class Note {
  id: string
  title: string
  noteContentList: NoteContent[]
  disabled: number
  updateTime: string

  constructor() {
    this.id = ''
    this.title = ''
    this.noteContentList = []
    this.disabled = 2
    this.updateTime = ''
  }
}

export class NoteContent {
  id: string
  content: string
  sort: number

  constructor() {
    this.id = ''
    this.content = ''
    this.sort = 0
  }
}
